<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<s:head theme="ajax" debug="true"/>
</head>
<body>			
		<table border="0" width="950" height="600">
			<tr>
				<td width="20%" valign="top">
				<br><br>
					<table border="1" width="100%">					
						<tr>																
							<td align="right">								
								<s:a href="/ssteam/addrbook/c_list.team" targets="abcontents" theme="ajax" executeScripts="true">
								<img src="/ssteam/image/addrbook/category_button_manage.png" border="0">
								</s:a>
							</td>
						</tr>
						<tr>
							<td>
								<s:url id="privAB" action="list" namespace="/addrbook">
									<s:param name="type">1</s:param>
									<s:param name="sabun">${session.user.sabun }</s:param>
								</s:url>							
								<s:url id="commAB" action="list" namespace="/addrbook">
									<s:param name="type">2</s:param>
									<s:param name="sabun">${session.user.sabun }</s:param>
								</s:url>
								<s:a href="%{privAB}" targets="abcontents" theme="ajax">
								<br>														
								<font size="3"><b>개인 주소록</b></font>								
								</s:a>
								<s:iterator value="calist">
								<s:if test="type == 1">
									<%--분류명 클릭시 해당 분류에 해당하는 주소목록만 출력. 구현하기 --%>
									<br>${cname }
								</s:if>
								</s:iterator>								
							</td>
						</tr>						
						<tr>
							<td>
								<s:a href="%{commAB}" targets="abcontents" theme="ajax">
								<br>
								<font size="3"><b>부서 공용 주소록</b></font>								
								</s:a>
								<s:iterator value="calist">
								<s:if test="type == 2">
									<br>${cname }
								</s:if>								
								</s:iterator>								
							</td>
						</tr>												
					</table>
				</td>
				<td width="80%" valign="top" align="left">
					<s:url id="abconURL" action="%{#request.abresult}" namespace="/addrbook"/>									
					<s:div id="abcontents" href="%{abconURL}" theme="ajax" executeScripts="true"></s:div>										
				</td>
			</tr>
		</table>	
</body>		
</html>